package com.dlc.shop.coupon.api.config;


import lombok.AllArgsConstructor;
import org.springdoc.core.models.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * 优惠券
 * @author lanhai
 */
@Configuration("couponSwaggerConfiguration")
@AllArgsConstructor
public class SwaggerConfiguration {


    @Bean
    public GroupedOpenApi couponRestApi() {
        return GroupedOpenApi.builder()
                .group("优惠券接口")
                .packagesToScan("com.dlc.shop.coupon.api.controller")
                .pathsToMatch("/**")
                .build();
    }


}
